//
//  MainDefaulSearchTypeOne_V4_Cell.m
//  ZITHER
//
//  Created by weixin on 2018/11/19.
//  Copyright © 2018 weixn. All rights reserved.
//

#import "MainDefaulSearchTypeOne_V4_Cell.h"

@implementation MainDefaulSearchTypeOne_V4_Cell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self addSubview:self.lab];
    
    [self setBorderWithHiddem:YES Color:[UIColor colorWithHex:@"cccccc"] width:0.5 Radius:8];

    [self.viewBorder mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(0);
        make.left.equalTo(self).offset(14);
        make.right.equalTo(self).offset(-14);
        make.bottom.equalTo(self).offset(-10);
    }];
    [self.lab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).offset(15);
        make.left.equalTo(self).offset(35);
        make.bottom.equalTo(self.mas_bottom).offset(-25);
    }];
}

-(BaseLab*)lab{
    if (!_lab) {
        _lab = [[BaseLab alloc]initializeFrame:CGRectMake(0, 0, 0, 1) text:@"title" font:12 textColor:[UIColor colorWithHex:@"cccccc"] isBold:NO numberOfLines:1];
        _lab.font = [UIFont fontWithName:@"PingFangSC-Semibold" size:15];
    }
    return _lab;
}


@end
